{|if $autorized|}
    <a href="/announcement/add/">Додати оголошення</a><br />
{|/if|}

{|foreach from=$postArray item='e'|}

                             <div  class="anGlb" style="background-color:{|$e.colorBec|}">
                                         <a class="anH" rel="bookmark"  href="{|$e.url|}">{|$e.title|} </a><br />
                                        
                                    	<div class="anbody">   {|$e.preview|}  </div>
                                         <!--  <div class="tdhow"> {|$e.postdate|}<br /></div>

                               -->
  
                                        {|if $autorized|}
                                        <div align="right"> 
                                            <a href="{|$e.urldelete|}">Видалити</a> | <a  href="{|$e.urledit|}">Корегувати</a><br />
                                         </div>   
                                        {|/if|}
<table>
		<tr>
			<td width="20">

			<a href="{|$e.url|}" class="twitter-share-button" data-count="horizontal">Tweet</a>
			<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

	
			</td>
			<td align="left">
		        <div id="fb-root"></div> 
			<script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)[0];
			  if (d.getElementById(id)) {return;}
			  js = d.createElement(s); js.id = id;
			  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));
			</script>
	               <div class="fb-like" data-href="{|$url|}" data-send="true" data-layout="button_count" data-width="45" data-show-faces="true" data-font="arial"></div>
			
</td>
<td>
<!-- Put this div tag to the place, where the Like block will be -->
<div id="vk_like{|$e.url|}"></div>
<script type="text/javascript">
VK.Widgets.Like("vk_like{|$e.url|}",{width: 25, pageTitle: '7', pageDescription: '7'}, "{|$e.url|}");
</script>			
			</td>
			
		</tr>
</table>
                            
                                </div>
{|/foreach|}
